﻿using System.Collections.Generic;
using HRC.Library.EntityLibrary.EntityOperations;
using Lehnet.BusinessLayer.Interfaces;

namespace Lehnet.BusinessLayer
{
    public class IlBusiness : IIlBusiness
    {
        public void SaveOrUpdate(Models.Il il)
        {
            if (il.Id == 0)
                EntityManager.Insert(il);
            else
                EntityManager.Update(il);
        }

        public List<Models.Il> LoadAll()
        {
            return EntityManager.LoadAll<Models.Il>();
        }
    }
}
